
package com.idealighter.game.games.foursshop.handler;

import com.idealighter.game.core.annotation.ResMsgHandler;
import com.idealighter.game.games.foursshop.FoursShopPlayer;
import com.idealighter.game.games.foursshop.message.ResRobtCarAreaMsg;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.robot.core.Player;
import com.idealighter.game.robot.handler.ResMessageHandler;


@ResMsgHandler(504230)
public class ResRobtCarAreaHandler implements ResMessageHandler {

  // private static final Logger LOG = LoggerFactory.getLogger(ResRobtCarAreaHandler.class);

  @Override
  public void action(Player player, ResMessage message) {
    ResRobtCarAreaMsg msg = (ResRobtCarAreaMsg) message;
    FoursShopPlayer foursShopPlayer = (FoursShopPlayer) player;
    foursShopPlayer.setCarArea(msg.getCarId());
  }
}
